package cn.zhukelili.generic;

/**
 * @Description: 场景类
 * @Auther: hongheshou
 * @Date: 2018/7/18 15:27
 */
public class Client {
    public static void main(String[] args) {
        Component component = new ConcreteComponent();
        //第一次修饰
        component = new ConcreteDecorator1(component);
        //第二次修饰
        component = new ConcreteDecorator2(component);
        //修饰后运行
        component.operate();
    }
}
